package learning.thread;

public class Thread2 {
	public static void main(String[] args) {
		RunThread rt1 = new RunThread("Cat");
		RunThread rt2 = new RunThread("Turtle");
		rt1.start();
		rt2.start();
		while (true) {
			System.out.println("main is superSystem");
		}
	}

}

class RunThread extends Thread {
	String name;

	public RunThread(String name) {
		this.name = name;
	}

	@Override
	public void run() {
		while (true) {
			System.out.println(this.name + " is running");
		}
	}
}